Auto merge of #4542 - equal-l2:sha256-crypto-hash, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 29 Sep 2017 06:48:13 +0000 (06:48 +0000)
committerbors <bors@rust-lang.org>
Fri, 29 Sep 2017 06:48:13 +0000 (06:48 +0000)
commit0ac53629de72657ce8187ee51aee94651e8517bb
tree8b0ada6c207e540c4d2b24688a336b2855166f9d
parent41d3fdbedc92d12190764becae297e2604b1d86f
parent8346104c1cf54624b8679610681f5451b8ff7f58
Auto merge of #4542 - equal-l2:sha256-crypto-hash, r=alexcrichton

Use crypto-hash to calculate SHA256

`crypto-hash` is an abstraction library for native hash libraries.
It uses CryptoAPI on Windows, CommonCrypto on macOS, and OpenSSL on *nix.

This PR will also remove `openssl` and `advapi32-sys` from dependencies since they are only used for calculating SHA256, which is superseded by `crypto-hash`.
(`crypto-hash` itself uses `openssl` and `advapi32-sys` though)